$(function () {
    $.ajax(
        {
            url:'/back/lawyer/findInfo',
            type:'get',
            dataType:'json',
            data:{id:sessionStorage.getItem("lawyerId"),
                loginName:sessionStorage.getItem("loginName")},
            success:function (res) {
                if(res.result=="notLogin"){
                    window.open("/html/login.html", "_top");
                }
                let data = res.result;
                $("#head_pic").attr("src",data.head);
                $("#lawyername").html(data.lawyerName);
                $("#role").html(data.dependenceObj);
                $("#intro").html(data.lawyerIntro);
                console.log(res);
            }
        }
    )
})